package example.logger.matcher;

import com.coderside.core.base.Matcher;
import com.coderside.core.util.ParseUtil;

/**
*auto create by Build Tool
**/
public class ContentMatcher implements Matcher {
	public String fetch(String content) {
		String regexChoice = "ERROR \\[.*\\] (.*)";
		String res = ParseUtil.getRegex(regexChoice, content, 1);
		return res;
	}

	public boolean match(String content) {
		String regexChoice = "ERROR \\[.*\\] (.*)";
		return ParseUtil.matcherReg(regexChoice, content);
	}

	public char getType() {
		return example.logger.LoggerInfoHelper.CONTENT;
	}
}
